package pa165.dominatingspecies.frontend.user;

import org.apache.wicket.markup.html.link.Link;
import org.springframework.security.access.prepost.PreAuthorize;

/**
 * @author Tomas Kalla
 */
@PreAuthorize("hasRole('ADMIN')")
public class UserPageLink extends Link<Void> {

    public UserPageLink(String id) {
        super(id);
    }

    @Override
    public void onClick() {
        UserPage ep = new UserPage();
        setResponsePage(ep);
    }
}
